﻿using OpenAiClient.Services;
using OpenAiClient.ViewModels;
using System.ComponentModel;
using System.Windows.Controls;
using Prism.Events;

namespace OpenAiClient.Views
{
    /// <summary>
    /// FeedbackView.xaml 的交互逻辑
    /// </summary>
    // ReSharper disable once RedundantExtendsListEntry
    public partial class FeedbackView : UserControl
    {
        public FeedbackView(
            ILogService logService,
            IConfigService configService,
            IHttpService httpService,
            IEventAggregator eventAggregator
        )
        {
            InitializeComponent();

            if (!DesignerProperties.GetIsInDesignMode(this))
            {
                DataContext = new FeedbackViewModel(
                    logService,
                    configService,
                    httpService,
                    eventAggregator
                );
            }
        }
    }
}
